/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.alsuhaul.gui;

import javax.swing.JFrame;
import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;

/**
 *
 * @author ifal
 */
public class FrmMenuTelaPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form FrmMenuTelaPrincipal
     */
    public FrmMenuTelaPrincipal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlBemVindo = new javax.swing.JPanel();
        lblBemVindo = new javax.swing.JLabel();
        lblPlano = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        lblimagem3 = new javax.swing.JLabel();
        mnbMenu = new javax.swing.JMenuBar();
        mnAdministracao = new javax.swing.JMenu();
        mniCadadtroCliente = new javax.swing.JMenuItem();
        mniCompraVendas = new javax.swing.JMenuItem();
        mniEstoqueProdutos = new javax.swing.JMenuItem();
        mniFornecedor = new javax.swing.JMenuItem();
        mniMensal = new javax.swing.JMenuItem();
        mniContasaPagar = new javax.swing.JMenuItem();
        mniFuncionario = new javax.swing.JMenuItem();
        mniLista = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pnlBemVindo.setBackground(new java.awt.Color(86, 80, 245));
        pnlBemVindo.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Alsuhaul01", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10), new java.awt.Color(228, 248, 53))); // NOI18N
        pnlBemVindo.setForeground(new java.awt.Color(213, 226, 39));
        pnlBemVindo.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblBemVindo.setFont(new java.awt.Font("Ubuntu", 0, 36)); // NOI18N
        lblBemVindo.setForeground(new java.awt.Color(231, 236, 40));
        lblBemVindo.setText("Bem-Vindo!");
        pnlBemVindo.add(lblBemVindo, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 90, -1, -1));

        lblPlano.setFont(new java.awt.Font("Ubuntu", 0, 24)); // NOI18N
        lblPlano.setForeground(new java.awt.Color(238, 232, 23));
        lblPlano.setText("Ao seu Plano Empresarial!");
        pnlBemVindo.add(lblPlano, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 240, -1, -1));
        pnlBemVindo.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 10, 295, 258));
        pnlBemVindo.add(lblimagem3, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 20, 260, 240));

        mnAdministracao.setText("Administração");

        mniCadadtroCliente.setText("CadastroCliente");
        mniCadadtroCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniCadadtroClienteActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniCadadtroCliente);

        mniCompraVendas.setText("CompraVendas");
        mniCompraVendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniCompraVendasActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniCompraVendas);

        mniEstoqueProdutos.setText("EstoqueProdutos");
        mniEstoqueProdutos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniEstoqueProdutosActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniEstoqueProdutos);

        mniFornecedor.setText("Fornecedor");
        mniFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniFornecedorActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniFornecedor);

        mniMensal.setText("FaturamentoMensal");
        mniMensal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniMensalActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniMensal);

        mniContasaPagar.setText("ContasaPagar");
        mniContasaPagar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniContasaPagarActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniContasaPagar);

        mniFuncionario.setText("CadastroFuncionario");
        mniFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniFuncionarioActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniFuncionario);

        mniLista.setText("Lista de Fornecedores");
        mniLista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniListaActionPerformed(evt);
            }
        });
        mnAdministracao.add(mniLista);

        jMenuItem2.setText("InformacoesSistema");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        mnAdministracao.add(jMenuItem2);

        mnbMenu.add(mnAdministracao);

        setJMenuBar(mnbMenu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlBemVindo, javax.swing.GroupLayout.DEFAULT_SIZE, 1182, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlBemVindo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(298, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mniCadadtroClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniCadadtroClienteActionPerformed

        FrmCadastroCliente cc = new FrmCadastroCliente();
        cc.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        cc.setVisible(true);
    }//GEN-LAST:event_mniCadadtroClienteActionPerformed

    private void mniCompraVendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniCompraVendasActionPerformed
        FrmCompraVendas cv = new FrmCompraVendas();
        cv.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        cv.setVisible(true);
    }//GEN-LAST:event_mniCompraVendasActionPerformed

    private void mniEstoqueProdutosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniEstoqueProdutosActionPerformed
        FrmEstoqueProdutos ep = new FrmEstoqueProdutos();
        ep.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        ep.setVisible(true);
    }//GEN-LAST:event_mniEstoqueProdutosActionPerformed

    private void mniFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniFornecedorActionPerformed
        FrmFornecedor f = new FrmFornecedor();
        f.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        f.setVisible(true);
    }//GEN-LAST:event_mniFornecedorActionPerformed

    private void mniMensalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniMensalActionPerformed
        FrmFaturamentoMensal fm = new FrmFaturamentoMensal();
        fm.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        fm.setVisible(true);
    }//GEN-LAST:event_mniMensalActionPerformed

    private void mniContasaPagarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniContasaPagarActionPerformed
        FrmContasaPagar cp = new FrmContasaPagar();
        cp.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        cp.setVisible(true);
    }//GEN-LAST:event_mniContasaPagarActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        FrmInformacoesSistema fs = new FrmInformacoesSistema();
        fs.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        fs.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void mniFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniFuncionarioActionPerformed
       FrmCadastroFuncionario fc = new FrmCadastroFuncionario();
        fc.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        fc.setVisible(true);
    }//GEN-LAST:event_mniFuncionarioActionPerformed

    private void mniListaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniListaActionPerformed
        FrmListaFornecedores fl = new FrmListaFornecedores();
        fl.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        fl.setVisible(true);
    }//GEN-LAST:event_mniListaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmMenuTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmMenuTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmMenuTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmMenuTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                FrmMenuTelaPrincipal menuPrincipal = new FrmMenuTelaPrincipal();
                menuPrincipal.setExtendedState(JFrame.MAXIMIZED_BOTH);
                menuPrincipal.setVisible(true);

            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JLabel lblBemVindo;
    private javax.swing.JLabel lblPlano;
    private javax.swing.JLabel lblimagem3;
    private javax.swing.JMenu mnAdministracao;
    private javax.swing.JMenuBar mnbMenu;
    private javax.swing.JMenuItem mniCadadtroCliente;
    private javax.swing.JMenuItem mniCompraVendas;
    private javax.swing.JMenuItem mniContasaPagar;
    private javax.swing.JMenuItem mniEstoqueProdutos;
    private javax.swing.JMenuItem mniFornecedor;
    private javax.swing.JMenuItem mniFuncionario;
    private javax.swing.JMenuItem mniLista;
    private javax.swing.JMenuItem mniMensal;
    private javax.swing.JPanel pnlBemVindo;
    // End of variables declaration//GEN-END:variables
}
